package lx.exalarm.app;

import android.app.Application;

import lx.exalarm.utils.CrashHandler;
import lx.exalarm.utils.log.Log;
import lx.exalarm.utils.log.LogUtils;

public class ThisApp extends Application{

    public static final String TAG = ThisApp.class.getSimpleName();

    private static ThisApp sInstance;

    public static ThisApp getInstance() {
        return sInstance;
    }

    @Override
    public void onCreate() {
        super.onCreate();
        sInstance = this;
        LogUtils.init(sInstance);
        CrashHandler.init();
        Log.d("application firing up !!!");
    }

    public static String getPackageCacheDir() {
        return sInstance.getCacheDir() + "/";
    }

}
